package com.sky.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@ApiModel(value = "com-sky-domain-WxUser")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "wx_user")
public class WxUser {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "")
    private Integer id;

    @TableField(value = "userName")
    @ApiModelProperty(value = "用户名")
    private String userName;

    @TableField(value = "pwd")
    @ApiModelProperty(value = "密码")
    private String pwd;

    @TableField(value = "phone")
    @ApiModelProperty(value = "手机号")
    private String phone;

    @TableField(value = "sex")
    @ApiModelProperty(value = "性别 1男 2女")
    private Integer sex;

    @TableField(value = "url")
    @ApiModelProperty(value = "头像")
    private String url;

    /**
     * 盐
     */
    @TableField(value = "salt")
    @ApiModelProperty(value = "盐")
    private String salt;

    private Byte action;

    private Date actionStamp;

    private Date createStamp;

    public static final String COL_PHONE = "phone";
    public static final String COL_USER_NAME = "userName";
    public static final String COL_USER_ID = "id";


}